javascript array method

the Tostring() method returns an array as a comma seperated string

the Join() method jins array elements into a string

popping and pushing

popping(remove) items out of an array, pushing(adding) items into an array

javascript array pop()

the pop() method removes the last element from an array

The push() method appends a new element to an array

shifting elements

the shift() method removes the first element of an array and shifts the other elements to the left

the unshift() method adds new element to the beginning of an array.

javascript array length

the length porperty provides an easy way to append new element to an array without using the push method.

Merging or concatenation array

the concat() method merge arrays

the concat() method also merge string values to an array

splicing and slicing array

the splice() method adds a new element to an array

the splice() method also returns an array with the deleted element

the slice() method slices out a part of an array starting from array element.